package cn.pconline.autoclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;
import org.gelivable.dao.Label;

/**
 * 
 * @author zhoutianhuai
 *
 * 2015年3月27日 下午5:21:59
 */
@Entity(tableName = "ac_subject_dyna", split = "Mod:subjectId:10")
@Label("动态")
public class SubjectDyna {

    @Id
    @Label("话题ID，复合主键")
    @Column(name = "subject_id")
    private long subjectId;
    @Id
    @Label("动态ID，复合主键")
    @Column(name = "dyna_info_id")
    private long dynaInfoId;
    @Label("创建时间")
    @Column(name = "create_at")
    private Date createAt;
    @Label("创建者")
    @Column(name = "create_by")
    private long createBy;
    @Label("状态，1：正常，-1：删除")
    @Column(name = "status")
    private int status;
    public static final int STATUS_NORMAL = Subject.STATUS_NORMAL;
    public static final int STATUS_DELETE = Subject.STATUS_DELETE;
    
    @Label("是否为置顶")
    @Column(name = "is_top")
    private int isTop;
    
    @Label("动态回复数")
    @Column(name = "post_count")
    private int postCount;
    
    @Label("置顶时间")
    @Column(name = "top_date")
    private Date topDate;
    
    /**根据最新排序**/
    public static final int ORDER_BY_NEW = 0;
    /**根据最热排序**/
    public static final int ORDER_BY_HOT = 1;
	public long getSubjectId() {
		return subjectId;
	}
	public void setSubjectId(long subjectId) {
		this.subjectId = subjectId;
	}
	public long getDynaInfoId() {
		return dynaInfoId;
	}
	public void setDynaInfoId(long dynaInfoId) {
		this.dynaInfoId = dynaInfoId;
	}
	public Date getCreateAt() {
		return createAt;
	}
	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}
	public long getCreateBy() {
		return createBy;
	}
	public void setCreateBy(long createBy) {
		this.createBy = createBy;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getIsTop() {
		return isTop;
	}
	public void setIsTop(int isTop) {
		this.isTop = isTop;
	}
	public int getPostCount() {
    	return postCount;
    }
	public void setPostCount( int postCount ) {
    	this.postCount = postCount;
    }
	public Date getTopDate() {
    	return topDate;
    }
	public void setTopDate( Date topDate ) {
    	this.topDate = topDate;
    }   
	
}
